import request from "@/utils/request";

// export function listConfig(query) {
//   return request({
//     url: "/system/config/list",
//     method: "get",
//     params: query
//   });
// }

export function listComplain(query) {
  return request({
    url: "/bid/complaint/front/list",
    method: "get",
    params: query
  });
}

export function add(data) {
  return request({
    url: "/bid/complaint",
    method: "post",
    data: data
  });
}

export function getById(id) {
  return request({
    url: `/bid/complaint/${id}`,
    method: "get"
  });
}
